package com.softeem.xyblogmaster.enumtype;

import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
public enum ArticlesStatus implements IEnum<String> {

    DRAFT(1,"draft"),
    PUBLISHED(2,"published"),
    ARCHIVED(3,"archived");



    private  int num;
    private String value;

    ArticlesStatus(int num, String value) {
        this.num = num;
        this.value = value;
    }

    @Override
    public String getValue() {
        return value;
    }
}
